<form class="form-horizontal" id="CstActivityDetailForm" xmlns:th="http://www.w3.org/1999/xhtml">
    <input class="hidden" name="avtId" th:value="${cstActivity.avtId}">

    <div class="box-body">
        <div class="form-group">
            <label  class="col-sm-3 control-label">客户编号 :</label>
            <div class="col-sm-8">
                <input  name="avtCustId" class="form-control"  min="1" require="必填项"  placeholder="" th:value="${cstActivity.avtCustId}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">地点 :</label>
            <div class="col-sm-8">
                <input name="avtPlace" class="form-control" placeholder="" th:value="${cstActivity.avtPlace}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">联系人姓名 :</label>
            <div class="col-sm-8">
                <select name="avtTitle" th:value="${cstActivity.avtTitle}" class="form-control">
                    <option value="线上谈">线上谈</option>
                    <option value="线下谈">线下谈</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">描述 :</label>
            <div class="col-sm-8">
                <input name="avtDesc" class="form-control" placeholder="" th:value="${cstActivity.avtDesc}">
            </div>
        </div>
    </div>
    <!-- /.box-body -->
    <div class="box-footer">
        <div class="pull-right">
            <button type="button" id="saveDetailCustomer" class="btn btn-info">确定</button>
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
        </div>
    </div>
    <!-- /.box-footer -->
</form>
<script>
    $(function () {
        $("#saveDetailCustomer").on('click', function () {
            if (doValidForm(CstActivityDetailForm)) {
                Core.mask("#saveDetailCustomer");
                Core.postAjax("/cstActivity/edit",$("#CstActivityDetailForm").serialize(),function (data) {
                    if (data.status == 200) {
                        Core.unmask("#saveDetailCustomer");
                        $("#userDetailModal").modal("hide");
                        $("#myModal").modal("hide");
                        Core.refreshTable("#table",true);
                    }
                    layer.msg(data.msg);
                })
            }
        });
    });
</script>